package com.cj.bk_app.di

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import com.cj.bk_app.model.api.BKRetrofitClient
import com.cj.bk_app.model.api.BKService
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
class AppModule {

    @Singleton
    @Provides
    fun provideBKService(): BKService =
        BKRetrofitClient.getService(BKService::class.java, BKService.BASE_URL)
}